#!/usr/bin/env python
#This is where map related code is.

class Tile:
	def __init__(self, wx, wy, tiletype, tileid): #Initialize a tile with the specified world x, world y, type, and ID.
		self.x = wx #Assign the tile's x.
		self.y = wy #Assign the tile's y.
		self.type = tiletype #Assign the tile's type.
		self.id = tileid #Assign the tile's ID

class Map:
	def __init__(self, size): #Initialize an empty map
		self.tiles = [] #Initialize an empty array of tiles
		self.size = size
		print "Created a new, empty map."

	def generate_test_map(self, width, height):
		for xcoord in range(width):
			for ycoord in range(height):
				self.tiles.append(Tile(xcoord, ycoord, 0, (xcoord*height)+ycoord))

		print "Finished generating the test map."
